Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding counter continuity #1010

Merged
merged 2 commits into from
Nov 22, 2022
Merged

Adding counter continuity #1010

merged 2 commits into from
Nov 22, 2022

Conversation

braidn-stripe
Copy link
Contributor

Motivation

Prometheus requires that counters be monotonic and that counters are emitted periodically, so they are not marked as stale in PromQL queries. This commit changes the Cortex sink to ensure it emits all counters that it has seen, even if it is unchanged during a particular flush interval

Test plan

Added automated test to verify counter continuity

Prometheus requires that counters be monotonic and that counters
are emitted periodically, so they are not marked as stale in
PromQL queries. This commit changes the Cortex sink to ensure it
emits all counters that it has seen, even if it is unchanged
during a particular flush interval
@braidn-stripe braidn-stripe merged commit 2bc8f62 into master Nov 22, 2022
@braidn-stripe braidn-stripe deleted the braidn/counter-continuity branch November 29, 2022 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants